home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 48 / PC Gamer IT CD 48 1-2.iso / age2 / AoE2demo.exe / 1033 / CABFILE / MSGAME.CAB / Data / gamedata.drs / Unnamed File 000025.bina < prev    next >
Text File  |  1999-10-01  |  4KB  |  206 lines

  1. ;error trapping
  2. (defrule
  3.     (current-age == imperial-age)
  4.     (not (goal rush-control NO) )
  5. =>
  6.     (set-goal rush-control NO)
  7. )
  8.  
  9. ;should we launch a rush?
  10. (defrule
  11.     (goal rush-control NOTICE)
  12. =>
  13.     (generate-random-number 12)
  14.     (disable-self)
  15. )
  16.  
  17. (defrule
  18.     (goal rush-control NOTICE)
  19.     (difficulty < hard)
  20.     (random-number == 1)
  21.     (or
  22.         (not (goal 1 10) )
  23.         (map-type archipelago)
  24.     )
  25. =>
  26.     (set-goal rush-control RUSHING)
  27.     (disable-self)
  28. )
  29.  
  30. (defrule
  31.     (goal rush-control NOTICE)
  32.     (difficulty < hard)
  33.     (random-number >= 2)
  34.     (random-number <= 5)
  35. =>
  36.     (set-goal rush-control FEUDAL)
  37.     (disable-self)
  38. )
  39.  
  40. (defrule
  41.     (goal rush-control NOTICE)
  42.     (difficulty < hard)
  43.     (random-number >= 6)
  44.     (random-number <= 8)
  45. =>
  46.     (set-goal rush-control CASTLE)
  47.     (disable-self)
  48. )
  49.  
  50. (defrule
  51.     (goal rush-control NOTICE)
  52.     (difficulty >= hard)
  53.     (random-number >= 1)
  54.     (random-number <= 2)
  55.     (or
  56.         (not (goal 1 10) )
  57.         (map-type archipelago)
  58.     )
  59. =>
  60.     (set-goal rush-control RUSHING)
  61.     (disable-self)
  62. )
  63.  
  64. (defrule
  65.     (goal rush-control NOTICE)
  66.     (difficulty >= hard)
  67.     (random-number >= 3)
  68.     (random-number <= 6)
  69. =>
  70.     (set-goal rush-control FEUDAL)
  71.     (disable-self)
  72. )
  73.  
  74. (defrule
  75.     (goal rush-control NOTICE)
  76.     (difficulty >= hard)
  77.     (random-number >= 7)
  78.     (random-number <= 9)
  79. =>
  80.     (set-goal rush-control CASTLE)
  81.     (disable-self)
  82. )
  83.  
  84. (defrule
  85.     (goal rush-control NOTICE)
  86. =>
  87.     (set-goal rush-control IMPERIAL)
  88.     (disable-self)
  89. )
  90.  
  91. (defrule
  92.     (goal rush-control FEUDAL)
  93.     (or
  94.         (map-type black-forest)
  95.         (map-type fortress)
  96.     )
  97. =>
  98.     (set-goal rush-control IMPERIAL)
  99.     (disable-self)
  100. )
  101.  
  102. (defrule
  103.     (goal rush-control RUSHING)
  104.     (current-age == dark-age)
  105.     (or
  106.         (map-type black-forest)
  107.         (map-type fortress)
  108.     )
  109. =>
  110.     (set-goal rush-control CASTLE)
  111.     (disable-self)
  112. )
  113.  
  114. ;**************************************
  115. ;go after boomers
  116. (defrule
  117.     (current-age >= dark-age)
  118.     (difficulty >= easy)
  119.     (or
  120.         (goal rush-control CASTLE)
  121.         (goal rush-control IMPERIAL)
  122.     )
  123.     (not (goal 1 10) )
  124.     (players-current-age every-enemy == dark-age)
  125.     (players-civilian-population every-enemy >= civ-feudal)
  126. =>
  127.     (set-goal rush-control RUSHING)
  128.     (disable-self)
  129. )
  130.  
  131. ;do the dark-age rush
  132. (defrule
  133.     (goal rush-control RUSHING)
  134.     (current-age == dark-age)
  135.     (or
  136.         (civilian-population >= civ-dark-rush)
  137.         (civilian-population >= 15)
  138.     )
  139.     (can-train militiaman)
  140. =>
  141.     (train militiaman)
  142.     (chat-local-to-self "train militia")
  143. )
  144.  
  145. ;end the rush when it looks bad
  146. (defrule
  147.     (goal rush-control RUSHING)
  148.     (current-age == dark-age)
  149.     (players-current-age any-enemy > dark-age)
  150. =>
  151.     (set-goal rush-control CASTLE)
  152.     (disable-self)
  153. )
  154.  
  155. ;*******************************************************
  156. ;FEUDAL RUSH RULES
  157. (defrule
  158.     (goal rush-control FEUDAL)
  159.     (current-age >= feudal-age)
  160. =>
  161.     (set-goal rush-control RUSHING)
  162.     (disable-self)
  163. )
  164.  
  165. ;go after boomers
  166. (defrule
  167.     (current-age >= feudal-age) 
  168.     (difficulty >= easy)
  169.     (players-current-age every-enemy <= feudal-age)
  170.     (players-civilian-population every-enemy > civ-castle)
  171. =>
  172.     (set-goal rush-control RUSHING)
  173.     (disable-self)
  174. )
  175.  
  176. ;end the feudal rush
  177. (defrule
  178.     (goal rush-control RUSHING)
  179.     (current-age == feudal-age)
  180.     (players-current-age any-enemy > feudal-age)
  181. =>
  182.     (set-goal rush-control IMPERIAL)
  183.     (disable-self)
  184. )
  185.  
  186. ;*******************************************************
  187. ;should we launch a castle rush?
  188. (defrule
  189.     (goal rush-control CASTLE)
  190.     (current-age >= castle-age)
  191. =>
  192.     (set-goal rush-control RUSHING)
  193.     (disable-self)
  194. )
  195.  
  196. ;end the rush
  197. (defrule
  198.     (goal rush-control RUSHING)
  199.     (current-age == castle-age)
  200.     (players-current-age any-enemy == imperial-age)
  201. =>
  202.     (set-goal rush-control IMPERIAL)
  203.     (disable-self)
  204. )
  205.  
  206.